package edu.deltacollege.portal.portlets.emailpreview;

/**
 * Retrieves an {@link EmailMessageDAO} relevant for the given
 * {@link AccountInfoDAO}. This is intended to support logical
 * names for {@link EmailMessageDAOs} independently of spring
 * bean names and to ensure the selected message DAO makes sense
 * for the current account DAO configuration. An
 * account DAO would typically cache this result at startup, after
 * it has itself been initialized.
 */
public interface EmailMessageDAOSelector {
    
    public EmailMessageDAO getEmailMessageDAO(AccountInfoDAO accountInfoDAO);

}
